<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="weight" class="control-label col-xs-12 col-sm-2">{:__('weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="weight" class="form-control" name="row[weight]" type="number" value="{$row.weight}" data-rule="required" >
        </div>
    </div>

    <div class="form-group">
        <label for="c-recm" class="control-label col-xs-12 col-sm-2">{:__('recommend')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[isrecommend]', ['1'=>__('推荐'), '2'=>__('不推荐')],$row.isrecommend)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
